package com.xhwl.logistics.logistics.request;

import com.xhwl.logistics.entity.logistics.Device;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 垛口请求对象
 */
@Data
public class CrenelGroupParam implements Serializable {
    @ApiModelProperty(value = "id，主键id",required = false)
    private Integer id;

    @NotBlank(message = "分组名称不能为空")
    @ApiModelProperty(value = "分组名称",required = true)
    private String groupName;

    @ApiModelProperty(value = "监控设备点位数量",required = true)
    private Integer monitorCount;


    @ApiModelProperty(value = "关联的设备信息")
    List<Device> deviceList;


    @NotBlank(message = "项目id不能为空")
    @ApiModelProperty(value = "项目id",required = true)
    private String projectId;

    @NotBlank(message = "项目名称不能为空")
    @ApiModelProperty(value = "项目名称",required = true)
    private String projectName;

    @ApiModelProperty(value = "创建日期",required = false)
    private Date createDate;

    @ApiModelProperty(value = "创建人",required = false)
    private String createUser;

}
